//
// Created by wze-zero on 2024/8/19 019.
//
#include <iostream>

using namespace std;

int main() {
    int num;
    cin >> num;
    cout << num % 100 / 10 << endl;
    return 0;
}